//
//  TYPlayerLifeSystem.m
//  AngerDragon
//
//  Created by gaotime_macbook_2 on 11-12-11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "TYPlayerLifeSystem.h"


@implementation TYPlayerLifeSystem
- (id) init {
	
	if ((self = [super init]))
	{
		CCLOG(@"%@: %@", NSStringFromSelector(_cmd), self);
		
	}
	
	return self;
}

- (void) dealloc {
	CCLOG(@"%@: %@", NSStringFromSelector(_cmd), self);
	
	[super dealloc];
}

#pragma mark 实现生命系统 协议
  
/// 绘制血槽
- (void) showLifeValueAtX : (float) x atY:(float) y forWidth:(float_t) a_f_show_width {
	/// ???
}

/// 调用父类的 deallocMe
//- (void) deallocMe {
//	[self dealloc];
//}

#pragma mark 实现player专用的生命系统扩展接口

/// 增加 可以继续游戏的次数(考虑玩家购买剩余游戏次数的情况, 一次买多个)
- (void) addContinueGameTime:(NSInteger) a_n_add_times {
	m_n_continue_game_time += a_n_add_times;
}
/// 减少 可以继续游戏的次数(每次减少1次游戏次数)
- (void) subContinueGameTime {
	m_n_continue_game_time--;
}
/// 获取剩余的游戏次数
- (NSInteger) getContinueGameTime {
	return m_n_continue_game_time;
}
@end
